
@import '@/styles/variables.scss';

.medicalRecord-container {
    height: 100%;
    background: #fff;
    .medicalRecord-list-container {
        margin-bottom: $block-space-y;
        .medicalRecord-title-container {
            height: 50px;
            padding: 0px $block-x;
            border-bottom: 1px solid $border-color;
            
            display: flex;
            justify-content: space-between;
            align-items: center;

            .title {
                padding-left: $block-img-text-x;
                border-left: 2px solid $main-color;
                .title-con{
                    font-size: $font-size-title;
                    color: $main-color;
                    font-weight: bold;
                }
            }
        }
        .list-container{
            padding: $block-y $block-x;
            .el-table{
                .el-table__expanded-cell{
                    padding: 0px;
                }
                .item-container{
                    margin-top: 15px;
                    .list-ul{
                        .list-item{
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            height: 24px;
                            .content{
                                font-size: $font-size-main;
                                color: $font-color-main;
                            }
                            &.list-item-hover:hover{
                                cursor: pointer;
                                .content{
                                    color: $main-color;
                                    .icon{
                                        color: $main-color;
                                    }
                                } 
                            }
                        }
                        .selectItem{
                            .content{
                                color: $main-color;
                                .icon{
                                    color: $main-color;
                                }
                            }
                        }
                    }
                    .prescription-title-container,.checkItem-title-container{
                        .title{
                            padding-left: $block-x;
                            border-left: 2px solid $main-color;
                        }
                    }
                    .prescription-list-container{
                        .prescription-container{
                            margin-top: $block-y;
                            &:first-of-type{
                                margin-top: 0px;
                            }
                            .list-title{
                                margin-bottom: $block-space-y;
                                p{
                                    display: flex;
                                    justify-content: flex-start;
                                    align-items: center;
                                    .list-icon{
                                        font-size: $font-size-main;
                                        color: $font-color-info;
                                        margin-right: 4px;
                                    }
                                    span{
                                        font-size: $font-size-main;
                                        color: $font-color-main;
                                    }
                                    
                                }
                            }
                            .list-item{
                                display: flex;
                                justify-content: space-between;
                                align-items: center;
                                .content{
                                    font-size: $font-size-main;
                                    color: $font-color-main;
                                    line-height: 24px;
                                }
                                .item-product{
                                    width: 80%;
                                }
                                .item-unit{
                                    width: 20%;
                                    text-align: right;
                                }
                            }
                            
                        }
                        
                    }
                    .checkItem-container{
                        .check-item-container{
                            .content{
                                font-size: $font-size-main;
                                color: $font-color-main;
                                line-height: 24px;
                            }
                            .item-name{
                                width: 70%;
                                .list-icon{
                                    font-size: $font-size-main;
                                    color: $font-color-info;
                                    margin-right: 4px;
                                }
                            }
                            .item-unit{
                                width: 30%;
                                text-align: right;
                            }
                        }
                    }
                }
            }
        }
    }
}